export const ruleData = [
    {
        id: '126991329',
        cost_rule: '1小时起订，3000元/小时',
        type: '核磁共振仪',
        model: 'EP002',
        source: '设备',
        source_id: '8138130123',
        time: '2小时',
        cost_total: '6000元',
        priority: 2,
        created_time: '2018-03-15 15:08:48',
        updated_time: '2018-03-15 15:08:48',
        client_id: '00:1A:1E:02:F5:70',
        phone: '13881340123',
        location: '门诊楼4楼',
        plugin_id: 'P12136',
        plugin_name: '00:1A:1E:02:F5:70',
        controller_id: '00:1A:1E:02:F5:70',
        controller_name: 'SLR01-WiFi-08a',
        status: '已支付',
        owner: '测试人员'
    }
];

export const ruleColumns = [
    {
        'title': '设备类型',
        'key': 'type',
    },
    {
        'title': '型号',
        'key': 'model',
    },
    {
        'title': '计费规则',
        'key': 'cost_rule',
    },
    {
        'title': '创建时间',
        'key': 'created_time',
        'sortable': true
    },
    {
        'title': '更新时间',
        'key': 'updated_time',
        'sortable': true
    },
    {
        title: "操作",
        key: "action",
        width: 102,
        render: (h, params) => {
            return h('div', [
                h('Button', {
                    props: { icon: 'edit', type: 'warning', size: 'small' }, style: { margin: '2px' }, on: {
                        click() {
                            edit(params.row);
                        }
                    }
                }),
                h('Button', {
                    props: { icon: 'trash-a', type: 'error', size: 'small' }, style: { margin: '2px' }, on: {
                        click() {
                            remove(params.row);
                        }
                    }
                }),
            ])
        }
    }
];
